package org.naigu.peach.biz.form;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * Created by well on 15/10/17.
 */
public class RegForm {

    @NotNull(message = "不能为空")
    @Length(min = 1,max = 30,message = "长度不能超过${max}")
    private String email;
    @NotNull(message = "不能为空")
    private String password;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
